<?php

namespace App\Utils;

class ResponseEnum
{
    ## 200表示服务器成功地接受了客户端请求
    const HTTP_OK = [1, '操作成功'];
    const HTTP_ERROR = [200002, '操作失败'];
    const USER_WECHAT_LOGIN_ERROR = [200204, '获取微信openid失败，登录失败'];
    const USER_WECHAT_MOBILE_ERROR = [200204, '获取微信手机号失败'];
    const USER_SERVICE_VERIFY_INVALID = [200106, '验证码无效'];
    const USER_ACCOUNT_REGISTERED = [203001, '账号已注册，请直接登录'];
    const REFUND_SIGN_INVALID = [204001, '登记异常，该商品已登记或出清'];
    const REFUND_TOTAL_NOT_ENOUGH = [204002, '抵扣异常，登记的退款金额不足'];
    const CLIENT_NOT_FOUND_HTTP_ERROR = [400001, '请求失败'];
    const CLIENT_PARAMETER_ERROR = [400200, '参数错误'];
    const CLIENT_CREATED_ERROR = [400201, '数据已存在'];
    const CLIENT_DELETED_ERROR = [400202, '数据不存在'];
    const CLIENT_HTTP_UNAUTHORIZED = [401001, '授权失败，请确认授权信息'];
    const CLIENT_HTTP_UNAUTHORIZED_EXPIRED = [401200, '账号信息已过期，请重新登录'];
    const JST_FRESH_TOKEN_NOT_FOUND = [402001, '聚水潭刷新token异常'];
    const CLIENT_NOT_FOUND_ERROR = [404001, '没有找到该页面'];
    const CLIENT_METHOD_HTTP_TYPE_ERROR = [405001, 'HTTP请求类型错误'];
    /*-------------------------------------------------------------------------------------------*/
    const SYSTEM_ERROR = [500001, '服务器错误'];
    const SERVICE_LOGIN_ACCOUNT_ERROR = [500103, '账号或密码错误'];
    const SERVICE_USER_ACCOUNT_ERROR = [500200, '账号异常'];

    # 重新定义
    const CLIENT_REQUEST_TIMEOUT = [201001, '请求超时'];
    const CLIENT_REQUEST_SIGNATURE_INVALID = [201002, '签名异常'];
}
